#ifndef CHECK_CHAT_H
#define CHECK_CHAT_H

#include <QWidget>

namespace Ui {
class check_chat;
}

class check_chat : public QWidget
{
    Q_OBJECT

public:
    explicit check_chat(QWidget *parent = nullptr,const QString &username=nullptr);
    ~check_chat();
    static check_chat* getInstance(QWidget *parent,const QString& username);
    static void destoryInstance();
    void PrivateList();
    void GroupList();
    void set_username(const QString &username);
private slots:
    // void on_tabWidget_currentChanged(int index);

    void on_toolButton_clicked();

private:
    Ui::check_chat *ui;
    QString id="";//目标id
    QString username="";//用户id
    QVector<bool> isShow;
    QVector<std::tuple<QString,QString,QString>> private_vec;
    QVector<std::tuple<QString,QString,QString,int>> group_vec;
    bool change_private=false;
    bool change_group=false;
    int currentIndex=0;
    static check_chat *instance;
};

#endif // CHECK_CHAT_H
